<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<h1>【client2】</h1>
<a href="http://localhost:1111">跳转到client1</a>
<button id="btn1">获取client1中的数据</button>
<button id="btn2">获取client2中的数据</button>
</body>
<script>
    let btn1 = document.querySelector("#btn1")
    let btn2 = document.querySelector("#btn2")
    btn1.addEventListener('click', function () {
        fetch("http://localhost:1111/halo")
    })
    btn2.addEventListener('click', function () {
        fetch("http://localhost:1112/halo")
    })
</script>
</html>
